import { Injectable } from '@nestjs/common';
import { CreateAaa8Dto } from './dto/create-aaa8.dto';
import { UpdateAaa8Dto } from './dto/update-aaa8.dto';
import { OnEvent } from '@nestjs/event-emitter';

@Injectable()
export class Aaa8Service {

  @OnEvent('testEventEmitter')
  handleTestEventEmitter(data) {
    console.log('事件通信', data)
  }

  create(createAaa8Dto: CreateAaa8Dto) {
    return 'This action adds a new aaa8';
  }

  findAll() {
    return `This action returns all aaa8`;
  }

  findOne(id: number) {
    return `This action returns a #${id} aaa8`;
  }

  update(id: number, updateAaa8Dto: UpdateAaa8Dto) {
    return `This action updates a #${id} aaa8`;
  }

  remove(id: number) {
    return `This action removes a #${id} aaa8`;
  }
}
